﻿namespace System;

/// <inheritdoc/>
public class OrSpecification<T> : CompositeSpecification<T>
{
    #region Ctor
    /// <inheritdoc/>
    public OrSpecification(ISpecification<T> left, ISpecification<T> right) : base(left, right) { }
    #endregion
    #region Public Methods
    /// <inheritdoc/>
    public override Expression<Func<T, bool>> GetExpression() => Left.GetExpression().Or(Right.GetExpression());
    #endregion
}
